<extend name="./Public/main" />
<block name="main">
<div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5><a href="{:U('Goods/add')}">添加商品</a></h5>
                    </div>
                    <div class="ibox-content">

                        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper form-inline" role="grid">
                        <table class="table table-striped table-bordered table-hover dataTables-example dataTable" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
                            <thead>
                                <tr role="row">
                                    <th class="sorting_asc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="ascending" aria-label="渲染引擎：激活排序列升序" style="width: 256px;">商品标题</th>
                                    <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="浏览器：激活排序列升序" style="width: 453px;">首图</th>
                                    <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="平台：激活排序列升序" style="width: 425px;">商品简介</th>
                                    <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="引擎版本：激活排序列升序" style="width: 189px;">发布时间</th>
                                    <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="CSS等级：激活排序列升序" style="width: 192px;">操作</th></tr>
                            </thead>
                            <tbody>   
                                <volist name="list" id="vo">
                                  <tr class="gradeA even">
                                      <td class="sorting_1">{$vo.title}</td>
                                      <td class=" "><img src="{$vo.pic}" width="150px" height="80px"></td>
                                      <td class=" ">{$vo.c_summary|html_entity_decode|strip_tags|mb_substr=0,20,'utf-8'}</td>
                                      <td class="center ">{$vo.add_time|date="Y-m-d",###}</td>
                                      <td class="center ">
                                        <a  class="btn btn-outline btn-danger" href="{:U('Goods/del',array('goods_id'=>$vo['goods_id']))}">删除</a>
                                        <a  class="btn btn-outline btn-warning" href="{:U('Goods/edit',array('goods_id'=>$vo['goods_id']))}">修改</a>
                                      </td>
                                  </tr>
                                </volist>
                            </tbody>
                        </table>
                        <div class="row">
                          <div class="col-sm-6">
                            <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
                               {$show}
                            </div>
                           </div>
                        </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
</block>